package cn.gson.school.dao.jiaoxue;

import java.util.List;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.jiaoxue.ZuoYeClassEntity;

@Repository
public interface ZuoYeClassDao extends CrudRepository<ZuoYeClassEntity, Long> {

	List<ZuoYeClassEntity> findByZuoyeId(Long zuoyeId);
	
	List<ZuoYeClassEntity> findByClassIdAndZuoyeId(Long id,Long zuoyeId);
	
	List<ZuoYeClassEntity> findByClassId(Long classId);
}
